package com.itheima.mapper;

import com.itheima.common.domain.InnerMarketDomain;
import com.itheima.pojo.po.StockMarketIndexInfo;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【stock_market_index_info(股票大盘数据详情表)】的数据库操作Mapper
* @createDate 2022-05-23 21:13:37
* @Entity com.itheima.pojo.po.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);

    List<InnerMarketDomain> selectByIdsAndDate(@Param("ids") List<String> innerIds, @Param("lastDate") Date lDate);

    List<Map> stockTradeVolCount(@Param("ids") List<String> inner,@Param("openTime") Date openTime, @Param("curTime") Date curTime);

    void insertBatch(ArrayList<StockMarketIndexInfo> list);
}
